import unittest
import time
from HTMLTestRunner_cn import HTMLTestRunner
now=time.strftime("%Y%m%d%H%M%S")
#发现用例
suite=unittest.defaultTestLoader.discover("./test_case","test_tags.py")
#执行器
f=open("./report/DDC{}.html".format(now),"wb")
if __name__ == '__main__':

    run=HTMLTestRunner(
        stream=f,
        description="自动化测试报告",
        # filename="./report/DDC{}.html".format(now)
        title="app测试"
)
    run.run(suite)
